/*
 * package.h
 *
 *  Created on: 2013-5-8
 *      Author: xkaying
 */

#ifndef PACKAGE_H_
#define PACKAGE_H_

#include "enum.h"
#include "interface.h"
#include "class.h"
#include "import.h"

typedef struct _package Package;

Package *PackageInit(char *name);
//添加一个子包,并返回子包
Package *PackageAppend(Package *package,char *name);
Package *PackageAppendImport(Package *package,Import *import);
//为包添加一个类
void PackageAppendClass(Package *package,Class *pclass);
//添加一个枚举类型
void PackageAppendEnum(Package *package,Enum *penum);

void PackageAppendInterface(Package *package,Interface *pif);

#endif /* PACKAGE_H_ */
